/*
 * @Description: 多语言配置  ### ie >= 11
 * @Autor: wanghuan
 * @Date: 2021-11-25 16:52:22
 * @LastEditors: wanghuan
 * @LastEditTime: 2021-11-29 13:56:12
 */


import Vue from "vue";
import VueI18n from 'vue-i18n';
import store from "/src/store/index";

Vue.use(VueI18n);
const messages = {
    "zh-CN": {
        'loginOut': '登出'
    },
    "en-US": {
        'loginOut': 'sessionOut'
    }
};
const locale = store.state.language;
// console.log( locale );
export default new VueI18n({
    locale: locale, // 语言标识
    messages: messages,
    silentTranslationWarn: true // 去除console中黄色报错
})